package state;/** * Created by Administrator on 2018-11-2. */public class SoldOutState implements State {    NewGumBallMachine newGumBallMachine;    public SoldOutState (NewGumBallMachine newGumBallMachine){          this.newGumBallMachine = newGumBallMachine;    }    public void insertQuarter() {        System.out.println("the gumball is sold out...");    }    public void ejectQuarter() {        System.out.println("you can't eject,you haven't inserted a quarter yet");    }    public void trunCrank() {        System.out.println("you turned!but there are not gumball...");    }    public void dispense() {         System.out.println("no gumball dispensed");    }}